
$(function () {
	$("#rewardType1").change(function () {
		if ($("#rewardType1").val() == 0) {
			$("#rewardId1").html("<option value='0'>-----------物品名称-----------</option>");
		} else {
			$.ajax({type:"post", url:"gm.htm?action=rewardTypeData", data:"rewardType=" + $("#rewardType1").val(), success:function (msg) {
				$("#rewardId1").html(msg);
			}});
		}
	});
	$("#rewardType2").change(function () {
		if ($("#rewardType2").val() == 0) {
			$("#rewardId2").html("<option value='0'>-----------物品名称-----------</option>");
		} else {
			$.ajax({type:"post", url:"gm.htm?action=rewardTypeData", data:"rewardType=" + $("#rewardType2").val(), success:function (msg) {
				$("#rewardId2").html(msg);
			}});
		}
	});
	$("#rewardType3").change(function () {
		if ($("#rewardType3").val() == 0) {
			$("#rewardId3").html("<option value='0'>-----------物品名称-----------</option>");
		} else {
			$.ajax({type:"post", url:"gm.htm?action=rewardTypeData", data:"rewardType=" + $("#rewardType3").val(), success:function (msg) {
				$("#rewardId3").html(msg);
			}});
		}
	});
	$("#rewardType4").change(function () {
		if ($("#rewardType4").val() == 0) {
			$("#rewardId4").html("<option value='0'>-----------物品名称-----------</option>");
		} else {
			$.ajax({type:"post", url:"gm.htm?action=rewardTypeData", data:"rewardType=" + $("#rewardType4").val(), success:function (msg) {
				$("#rewardId4").html(msg);
			}});
		}
	});
	$("#rewardType5").change(function () {
		if ($("#rewardType5").val() == 0) {
			$("#rewardId5").html("<option value='0'>-----------物品名称-----------</option>");
		} else {
			$.ajax({type:"post", url:"gm.htm?action=rewardTypeData", data:"rewardType=" + $("#rewardType5").val(), success:function (msg) {
				$("#rewardId5").html(msg);
			}});
		}
	});
	$("#rewardType6").change(function () {
		if ($("#rewardType6").val() == 0) {
			$("#rewardId6").html("<option value='0'>-----------物品名称-----------</option>");
		} else {
			$.ajax({type:"post", url:"gm.htm?action=rewardTypeData", data:"rewardType=" + $("#rewardType6").val(), success:function (msg) {
				$("#rewardId6").html(msg);
			}});
		}
	});
});

 